package com.idheima.encode_decode;

public class Test {
    public static void main(String[] args) {
        //编码
        String str = "a我m";
        byte[] bytes = str.getBytes();
        System.out.println(bytes[0]);
        System.out.println(bytes[1]);
        System.out.println(bytes[2]);


        //解码
        String str1 = new String(bytes);
        System.out.println(str1);
    }
}
